package com.fz.mapper;

import com.fz.controller.request.BaseRequest;
import com.fz.pojo.Borrow;
import com.fz.pojo.ReturnBooks;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface BorrowMapper {
    List<Borrow> list();

    //查询种类，返回
    List<Borrow> listByCondition(BaseRequest baseRequest);


//    List<ReturnBooks> listReturnByCondition(BaseRequest baseRequest);

    //添加借书
    void addBorrow(Borrow borrow);

//    //还书
//    void addReturn(ReturnBooks returnBooks);



    //通过id查询
    Borrow getById(Integer id);

    void updateById(Borrow borrow);

    void deleteById(Integer id);

    void updateStatus(String status,Integer id);

}
